package com.iris.live.services.data.models;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.sql.Date;

/**
 * Created by DF on 9/22/2016.
 */
public class 销售顾问状态ModelPK implements Serializable {
    private String 许可;
    private Date 日期;
    private String 销售顾问;

    @Column(name = "许可")
    @Id
    public String get许可() {
        return 许可;
    }

    public void set许可(String 许可) {
        this.许可 = 许可;
    }

    @Column(name = "日期")
    @Id
    public Date get日期() {
        return 日期;
    }

    public void set日期(Date 日期) {
        this.日期 = 日期;
    }

    @Column(name = "销售顾问")
    @Id
    public String get销售顾问() {
        return 销售顾问;
    }

    public void set销售顾问(String 销售顾问) {
        this.销售顾问 = 销售顾问;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        销售顾问状态ModelPK that = (销售顾问状态ModelPK) o;

        if (许可 != null ? !许可.equals(that.许可) : that.许可 != null) return false;
        if (日期 != null ? !日期.equals(that.日期) : that.日期 != null) return false;
        if (销售顾问 != null ? !销售顾问.equals(that.销售顾问) : that.销售顾问 != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = 许可 != null ? 许可.hashCode() : 0;
        result = 31 * result + (日期 != null ? 日期.hashCode() : 0);
        result = 31 * result + (销售顾问 != null ? 销售顾问.hashCode() : 0);
        return result;
    }
}
